date_parse_from_format
獲取有關根據指定格式格式化的給定日期的信息
date_parse_from_format()
函數根據指定的格式返回包含指定日期信息的關聯數組。
根據指定的格式返回一個包含指定日期信息的關聯數組:
<?php print_r ( date_parse_from_format ( "mmddyyyy" , "05122013" ) ) ; ?>
親自試一試
date_parse_from_format ( format , date ) ;
參數 | 描述 |
---|---|
format | 必需。規定格式( date_create_from_format()接受的格式)。 |
date | 必需。指定日期,字符串值。 |